<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>智能导航看板</title>
    <style>
        /* 根变量定义 */
        :root {
            --primary-color: #1677ff; /* 主色调 */
            --bg-gradient: linear-gradient(150deg, #f0faff 0%, #e6f2ff 100%); /* 背景渐变 */
            --card-min-width: 260px; /* 卡片最小宽度 */
        }

        /* 基础样式 */
        body {
            background: var(--bg-gradient);
            font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            margin: 0;
            position: relative;
            line-height: 1.6;
        }

        /* 主容器 */
        .dashboard {
            max-width: 1600px; /* 最大宽度限制 */
            width: 90%; /* 相对宽度 */
            padding: 2rem 0 6rem; /* 底部留白防止遮挡时间 */
        }

        /* 标题样式 */
        .title {
            font-size: 2.4rem;
            color: var(--primary-color);
            margin-bottom: 2.5rem;
            font-weight: 600;
            text-align: center;
            position: relative;
            padding-bottom: 1rem;
        }

        /* 标题装饰线 */
        .title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background: rgba(22, 119, 255, 0.2);
            border-radius: 2px;
        }

        /* 卡片网格布局 */
        .card-grid {
            display: grid;
            gap: 1.5rem; /* 卡片间距 */
            padding: 1rem;
            justify-content: center; /* 居中对齐 */
        }

        /* 卡片基础样式 */
        .card {
            background: rgba(255, 255, 255, 0.98);
            border-radius: 12px;
            padding: 1.5rem;
            text-align: center;
            text-decoration: none;
            color: var(--primary-color);
            font-size: 1.2rem;
            font-weight: 500;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 12px rgba(22, 119, 255, 0.08);
            border: 1px solid rgba(22, 119, 255, 0.1);
            min-height: 100px; /* 统一高度 */
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        /* 卡片动态背景纹理 */
        .card::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg,
                    transparent 25%,
                    rgba(22, 119, 255, 0.03) 25%,
                    rgba(22, 119, 255, 0.03) 50%,
                    transparent 50%,
                    transparent 75%,
                    rgba(22, 119, 255, 0.03) 75%);
            background-size: 4px 4px;
            transform: rotate(45deg);
            opacity: 0;
            transition: opacity 0.3s;
        }

        /* 卡片悬停效果 */
        .card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(22, 119, 255, 0.15);
        }

        .card:hover::before {
            opacity: 1;
        }

        /* 状态栏样式 */
        .status-bar {
            position: fixed; /* 固定定位 */
            bottom: 30px;
            right: 30px;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 8px;
            padding: 12px 24px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
            font-size: 1.05rem;
            color: var(--primary-color);
            display: flex;
            align-items: center;
            gap: 0.8rem;
            z-index: 10; /* 确保在最上层 */
            cursor: pointer; /* 鼠标悬停时显示为可点击 */
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        /* 状态栏悬停效果 */
        .status-bar:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
        }

        /* 状态指示灯动画 */
        .status-indicator {
            width: 10px;
            height: 10px;
            background: #52c41a;
            border-radius: 50%;
            animation: pulse 1.5s infinite;
        }

        /* 时间放大效果 */
        .time-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.70); /* 背景透明度调整为 70% */
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 100; /* 确保在最上层 */
            font-size: 8rem;
            color: #ffffff; /* 放大后时间颜色调整为白色 */
            font-weight: 600;
            cursor: pointer; /* 点击关闭 */
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }

        /* 显示时间放大效果 */
        .time-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        /* 放大后时间的动效 */
        #fullscreen-time {
            animation: time-scale 1.5s infinite alternate;
        }

        @keyframes time-scale {
            from {
                transform: scale(1);
            }

            to {
                transform: scale(1.1);
            }
        }

        /* 大屏布局优化（≥1400px） */
        @media (min-width: 1400px) {
            .card-grid {
                grid-template-columns: repeat(4, minmax(240px, 1fr)); /* 固定4列布局 */
            }
        }

        /* 移动端优化（≤768px） */
        @media (max-width: 768px) {
            .dashboard {
                width: 92%; /* 两侧留白 */
                padding: 1.5rem 0 8rem; /* 增加底部间距 */
            }

            .card {
                width: 90%; /* 相对宽度 */
                max-width: 360px; /* 最大宽度限制 */
                margin: 0 auto; /* 居中对齐 */
                padding: 1.2rem 1rem; /* 调整内边距 */
                font-size: 1rem;
                min-height: 80px;
            }

            .status-bar {
                bottom: 15px;
                right: 15px;
                padding: 8px 16px;
            }

            .time-overlay {
                font-size: 4rem; /* 移动端字体缩小 */
            }
        }

        /* 小屏手机优化（≤480px） */
        @media (max-width: 480px) {
            .dashboard {
                width: 94%; /* 更窄的容器宽度 */
            }

            .card {
                width: 88%;
                font-size: 0.95rem;
                min-height: 75px;
                padding: 1rem 0.8rem;
            }

            .title {
                font-size: 1.8rem !important;
            }

            .time-overlay {
                font-size: 3rem; /* 小屏手机字体进一步缩小 */
            }
        }

        /* 呼吸动画 */
        @keyframes pulse {
            0% {
                transform: scale(0.95);
                opacity: 0.8;
            }

            50% {
                transform: scale(1.1);
                opacity: 1;
            }

            100% {
                transform: scale(0.95);
                opacity: 0.8;
            }
        }
    </style>
</head>

<body>
    <div class="dashboard">
        <h1 class="title">智能导航看板</h1>
        <div class="card-grid" id="card-grid">
            <a href="https://juejin.cn/column/7448224551277969447" class="card" target="_blank" rel="noopener noreferrer">《Docker笔记专栏》</a>
            <a href="https://www.yuque.com/xy12306/docker/gt611idl667ez0lv?singleDoc# 《Docker和k8s笔记合集》" class="card" target="_blank" rel="noopener noreferrer">《k8s笔记合集》</a>
            <a href="https://www.jspoo.com/" class="card" target="_blank" rel="noopener noreferrer">《聚神铺导航》</a>
            <a href="https://www.yuque.com/xy12306/wvvv7e/pvr26q1x0ouenttg?singleDoc# 《实用网页合集》" class="card" target="_blank" rel="noopener noreferrer">《实用网页合集》</a>
            <a href="https://kdocs.cn/l/caIQQKIJ96K2" class="card" target="_blank" rel="noopener noreferrer">《windows优化工具》</a>
            <a href="https://hcnsseyzsztm.feishu.cn/wiki/NMOXwHvRoijRDSkBKUzcq25enzf" class="card" target="_blank" rel="noopener noreferrer">《服务器搭建笔记》</a>
            <a href="https://ai.com" class="card" target="_blank" rel="noopener noreferrer">《Deepseek》</a>
            <a href="https://xy12306-01.github.io/page03.html" class="card">⚡⚡ 刷新页面 ⚡⚡</a>

        </div>
    </div>

    <!-- 状态栏（时间显示） -->
    <div class="status-bar" id="status-bar">
        <span class="status-indicator"></span>
        <span id="current-time"></span>
    </div>

    <!-- 时间放大效果 -->
    <div class="time-overlay" id="time-overlay">
        <span id="fullscreen-time"></span>
    </div>

    <script>
        // 时间更新函数
        function updateTime() {
            const now = new Date();
            const fullTimeString = now.toLocaleString('zh-CN', {
                year: 'numeric',
                month: '2-digit',
                day: '2-digit',
                hour: '2-digit',
                minute: '2-digit',
                second: '2-digit',
                hour12: false
            });
            const timeString = now.toLocaleString('zh-CN', {
                hour: '2-digit',
                minute: '2-digit',
                second: '2-digit',
                hour12: false
            });
            document.getElementById('current-time').textContent = fullTimeString;
            document.getElementById('fullscreen-time').textContent = timeString;
        }

        // 初始化时间并设置定时器
        updateTime();
        setInterval(updateTime, 1000);

        // 动态调整卡片布局
        function adjustCardLayout() {
            const cardGrid = document.getElementById('card-grid');
            const cards = cardGrid.querySelectorAll('.card');
            const cardCount = cards.length;

            let columns, rows;

            if (window.innerWidth <= 768) {
                // 当宽度较窄时，显示单列
                columns = 1;
                rows = cardCount;
            } else if (cardCount <= 6) {
                columns = 3;
                rows = 2;
            } else if (cardCount <= 8) {
                columns = 4;
                rows = 2;
            } else if (cardCount <= 9) {
                columns = 3;
                rows = 3;
            } else {
                columns = 4;
                rows = Math.ceil(cardCount / 4);
            }

            cardGrid.style.gridTemplateColumns = `repeat(${columns}, minmax(240px, 1fr))`;
            cardGrid.style.gridTemplateRows = `repeat(${rows}, minmax(100px, 1fr))`;
        }

        // 页面加载时调整布局
        adjustCardLayout();
        // 监听窗口大小变化，动态调整布局
        window.addEventListener('resize', adjustCardLayout);

        // 点击状态栏显示/隐藏时间放大效果
        const statusBar = document.getElementById('status-bar');
        const timeOverlay = document.getElementById('time-overlay');
        statusBar.addEventListener('click', function () {
            timeOverlay.classList.toggle('active');
        });

        // 点击时间放大效果区域隐藏时间放大效果
        timeOverlay.addEventListener('click', function () {
            timeOverlay.classList.remove('active');
        });
    </script>
</body>

</html>